class Potitem < ActiveRecord::Base
## 
## 
    def self.culcPots(list)
        p = {1=>{'item'=>0,'special'=>0},2=>{'item'=>0,'special'=>0},3=>{'item'=>0,'special'=>0},4=>{'item'=>0,'special'=>0},5=>{'item'=>0,'special'=>0}}
        list.each(){|pot|
			genre = pot.potid.to_i
            p[genre]['item'] += 1
            p[genre]['special'] += 1 if pot.special.to_i == BKH_IS_SPECIAL and p[genre]['special'].to_i <= BKH_SPECIAL_LIMIT
        }
        return p
    end
end
